import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import com.du.maven.email.impl.AccountEmailServiceImpl;

public class testHtml {
	@Test
	public void testFromSpringIoc(){
		ApplicationContext app =new ClassPathXmlApplicationContext("applicationContext.xml");
		AccountEmailServiceImpl email = (AccountEmailServiceImpl) app.getBean("accountEmailService");
		email.sendmailHtmlText("1184116431@qq.com", "test222222222", "<h1>htmlString</h1>");
		email.sendmailText("1184116431@qq.com", "test222222222", "<h1>String</h1>");
		email.sendmailHtmlText2Many(new String[]{"1184116431@qq.com","dugq@winupon.com"}, "test222222222", "<h1>htmlString2many</h1>");
		email.sendmailText2Many(new String[]{"1184116431@qq.com","dugq@winupon.com"}, "test222222222", "<h1>String2many</h1>");
	}
}
